PORTNAME=	colloid-icon-theme
DISTVERSION=	2023-07-01
CATEGORIES=	x11-themes

MAINTAINER=	duchateau.olivier@gmail.com
COMMENT=	Flat clean style icon theme
WWW=		https://github.com/vinceliuice/Colloid-icon-theme

LICENSE=	GPLv3

RUN_DEPENDS=	hicolor-icon-theme>0:misc/hicolor-icon-theme

NO_ARCH=	yes
NO_BUILD=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	vinceliuice
GH_PROJECT=	${PORTNAME:C/c/C/1}

ICONSDIR=	${PREFIX}/share/icons
THEME_NAME=	Colloid

pre-install:
	${MKDIR} ${STAGEDIR}${ICONSDIR}/${THEME_NAME}

do-install:
	cd ${WRKSRC}/src && ${COPYTREE_SHARE} . \
		${STAGEDIR}${ICONSDIR}/${THEME_NAME} "! -name *\.orig"

	cd ${WRKSRC}/links && ${COPYTREE_SHARE} . \
		${STAGEDIR}${ICONSDIR}/${THEME_NAME}

post-install:
.for d in actions apps categories devices emblems mimetypes places status
	${RLN} ${STAGEDIR}${ICONSDIR}/${THEME_NAME}/${d} \
		"${STAGEDIR}${ICONSDIR}/${THEME_NAME}/${d}@2x"
.endfor

.include <bsd.port.mk>
